<template>
  <div>
    <van-field label="名称" v-model="form.name"/>
    <van-field label='总数' v-model='form.total'/>
    <p>开始时间：<input type="date" v-model="form.stime"></p>
    <p>结束时间：<input type="date" v-model="form.etime"></p>
    <van-button @click="add">添加</van-button>
  </div>
</template>

<script>
export default {
  name: "coupon",
  data() {
    return {
      form: {},
    }
  },

  methods: {
    add() {
      this.axios.post('couponM', this.form).then(res => {
        console.log(res)
      })
    }
  },

  mounted() {

  }
}
</script>

<style scoped>

</style>
